package com.chy.ruoyi.vue.codegen.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "gen")
public class GenConfig
{
    /** 作者 */
    public static String author;

    /** 生成包路径 */
    public static String packageName;

    /** 自动去除表前缀，默认是false */
    public static boolean autoRemovePre;

    /** 表前缀(类名不会包含表前缀) */
    public static String tablePrefix;

    /** 模板类型(crud  tree  sub) */
    public static String tpl_category;

    /** 子表名称 */
    public static String sub_table_name;

    /** 主表ID*/
    public static String sub_table_fk_name;

    /** 树形表需要 */
    public static String options;

    /** 树形表需要 */
    public static String treeCode;

    /** 树形表需要 */
    public static String treeName;

    /** 树形表需要 */
    public static String treeParentCode;

    /** 树形表需要 */
    public static String parentMenuId;

    public static String getAuthor()
    {
        return author;
    }

    public void setAuthor(String author)
    {
        GenConfig.author = author;
    }

    public static String getPackageName()
    {
        return packageName;
    }

    public void setPackageName(String packageName)
    {
        GenConfig.packageName = packageName;
    }

    public static boolean getAutoRemovePre()
    {
        return autoRemovePre;
    }

    public void setAutoRemovePre(boolean autoRemovePre)
    {
        GenConfig.autoRemovePre = autoRemovePre;
    }

    public static String getTablePrefix()
    {
        return tablePrefix;
    }

    public void setTablePrefix(String tablePrefix)
    {
        GenConfig.tablePrefix = tablePrefix;
    }


    public static String getTpl_category()
    {
        return tpl_category;
    }

    public void setTpl_category(String tpl_category)
    {
        GenConfig.tpl_category = tpl_category;
    }


    public static String getSub_table_name()
    {
        return sub_table_name;
    }

    public void setSub_table_name(String sub_table_name)
    {
        GenConfig.sub_table_name = sub_table_name;
    }

    public static String getSub_table_fk_name()
    {
        return sub_table_fk_name;
    }

    public void setSub_table_fk_name(String sub_table_fk_name)
    {
        GenConfig.sub_table_fk_name = sub_table_fk_name;
    }

    public static String getOptions()
    {
        return options;
    }

    public void setOptions(String options)
    {
        GenConfig.options = options;
    }


    public static String getTreeCode()
    {
        return treeCode;
    }

    public void setTreeCode(String treeCode)
    {
        GenConfig.treeCode = treeCode;
    }


    public static String getTreeName()
    {
        return treeName;
    }

    public void setTreeName(String treeName)
    {
        GenConfig.treeName = treeName;
    }

    public static String getTreeParentCode()
    {
        return treeParentCode;
    }

    public void setTreeParentCode(String treeParentCode)
    {
        GenConfig.treeParentCode = treeParentCode;
    }

    public static String getParentMenuId()
    {
        return parentMenuId;
    }

    public void setParentMenuId(String parentMenuId)
    {
        GenConfig.parentMenuId = parentMenuId;
    }
}
